<div class="widgets-group">
    <div class="widgets-heading">
        <span>Дайджест</span>
    </div>
    <div id="collapse-finance" class="widgets-body">
        <div class="widgets-inner" id="digest">
            <table id="table-digest" class="table table-hover">
                <? foreach ($this->digest as $thing): ?>
                    <?/** @var Application_Model_Thing $thing */ ?>
                    <?= $thing->render(); ?>
                <?endforeach; ?>
            </table>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $('#digest table').tableDnD({
            onDrop : function (table, row) {
                $.get('/ajax/savesort', $.tableDnD.serialize());
            }
        });
    });
</script>